package ch.zhaw.mini.doclet.formater;

import com.sun.javadoc.PackageDoc;

public class FormatPackagePage extends FormatPage {


	private PackageDoc pkg;
	
	public FormatPackagePage(PackageDoc pkg) {
		this.pkg = pkg;
	}
	/**
	 * Prints the Head of the Wiki Page (Short Description + TOC + Package
	 * Title)
	 * 
	 * @return Package Page Title String
	 */
	public  StringBuilder printHead() {
		// this is ch.zhaw.javadoc2mediawiki.helloworld package description, see
		// [[http://en.wikipedia.org/wiki/Java_package Java Packages]] (Limited
		// to like 100 Chars (for better view in the search result)
		// __TOC__
		//
		// = Package: ch.zhaw.javadoc2mediawiki.helloworld =
		//
		//
		StringBuilder output = new StringBuilder();
		output.append(createSmallComment(new StringBuilder(pkg.commentText())));

		return output;

	}

}